/*
 *  Copyright 2015-2016, RenGu Technology (BeiJing) Co., Ltd.
 *  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIR PARTIES,
 *  COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  AcctDayCutInfoMapper
 *
 *  Edit History:
 *      lizhangtao Created on 2020年04月13日
 *
 */
package cc.rengu.igas.acct.common.dao;

import cc.rengu.igas.acct.common.entity.AcctDaycutInfo;
import cc.rengu.oltp.service.model.BizException;
import cc.rengu.oltp.utility.util.DbsUtil;

/**
 * 日切表操作接口
 *
 * @author lizhangtao
 * @version 1.0
 * @date 2020/5/8
 */
public interface AcctDayCutInfoMapper {

    /**
     * 查询机构的日切信息
     *
     * @param instId 法人机构号
     * @return 成功返回机构日切信息，未查询到信息返回null
     * @throws BizException 其他失败及异常都抛出异常
     */
    AcctDaycutInfo selectAcctDayCutInfoByInstId(String instId) throws BizException;

    /**
     * 查询机构的日切信息
     *
     * @param instId  法人机构号
     * @param dbsUtil 数据库句柄
     * @return 成功返回机构日切信息，未查询到信息返回null
     * @throws BizException 其他失败及异常都抛出异常
     */
    AcctDaycutInfo selectAcctDayCutInfoByInstId(String instId, DbsUtil dbsUtil) throws BizException;

    /**
     * 锁定日切表机构数据
     *
     * @param instId 法人机构号
     * @return 成功返回账户当前记账日期信息
     * @throws BizException 无数据、其他失败、异常
     */
    AcctDaycutInfo lockByInstId(String instId) throws BizException;
}
